<?php if (!defined('THINK_PATH')) exit();?>
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="__TMPL__Common/style/style.css" />
<script type="text/javascript" src="__TMPL__Common/js/check_dog.js"></script>
<script type="text/javascript" src="__TMPL__Common/js/IA300ClientJavascript.js"></script>
<script type="text/javascript">
	var ACTION_ID ='<?php echo $action_id ?>';
 	var VAR_MODULE = "<?php echo conf("VAR_MODULE");?>";
	var VAR_ACTION = "<?php echo conf("VAR_ACTION");?>";
	var MODULE_NAME	=	'<?php echo MODULE_NAME; ?>';
	var ACTION_NAME	=	'<?php echo ACTION_NAME; ?>';
	var ROOT = '__APP__';
	var ROOT_PATH = '<?php echo APP_ROOT; ?>';
	var CURRENT_URL = '<?php echo trim($_SERVER['REQUEST_URI']);?>';
	var INPUT_KEY_PLEASE = "<?php echo L("INPUT_KEY_PLEASE");?>";
	var TMPL = '__TMPL__';
	var APP_ROOT = '<?php echo APP_ROOT; ?>';
	var LOGINOUT_URL = '<?php echo u("Public/do_loginout");?>';
	var WEB_SESSION_ID = '<?php echo es_session::id(); ?>';
	var EMOT_URL = '<?php echo APP_ROOT; ?>/public/emoticons/';
	var MAX_FILE_SIZE = "<?php echo (app_conf("MAX_IMAGE_SIZE")/1000000)."MB"; ?>";
	var FILE_UPLOAD_URL ='<?php echo u("File/do_upload");?>' ;
	CHECK_DOG_HASH = '<?php $adm_session = es_session::get(md5(conf("AUTH_KEY"))); echo $adm_session["adm_dog_key"]; ?>';
	function check_dog_sender_fun()
	{
		window.clearInterval(check_dog_sender);
		check_dog2();
	}
	var check_dog_sender = window.setInterval("check_dog_sender_fun()",5000);
	
</script>
	<script type="text/javascript" src="__TMPL__Common/js/cropper/jquery.min.js"></script>
<script type="text/javascript" src="__TMPL__Common/js/jquery.timer.js"></script>

<link rel="stylesheet" type="text/css" href="__TMPL__Common/style/weebox.css" />
<script type="text/javascript" src="__TMPL__Common/js/jquery.bgiframe.js"></script>
<script type="text/javascript" src="__TMPL__Common/js/jquery.weebox.js"></script>
<link rel="stylesheet" type="text/css" href="__TMPL__Common/js/cropper/cropper.min.css" />
<link rel="stylesheet" type="text/css" href="__TMPL__Common/js/cropper/main.css" />
<script type="text/javascript" src="__TMPL__Common/js/cropper/cropper.min.js"></script>

<script type="text/javascript" src="__TMPL__Common/js/script.js"></script>
<script type="text/javascript" src="__ROOT__/public/runtime/admin/lang.js"></script>
<script type='text/javascript'  src='__ROOT__/admin/public/kindeditor/kindeditor.js'></script>
<script type='text/javascript'  src='__ROOT__/admin/public/kindeditor/lang/zh_CN.js'></script>


</head>
<body onLoad="javascript:DogPageLoad();">
<div id="info"></div>

<?php function is_coin($is_coin){
		if($is_coin==1){
			return "游戏币";
		}else{
			return "钻石";
		}
	} ?>
<script type="text/javascript">
	//完全删除
	function prop_detail(id,create_ym)
	{
		if(!id)
		{
			idBox = $(".key:checked");
			if(idBox.length == 0)
			{
				alert(LANG['DELETE_EMPTY_WARNING']);
				return;
			}
			idArray = new Array();
			$.each( idBox, function(i, n){
				idArray.push($(n).val());
			});
			id = idArray.join(",");

		}

		if(!create_ym)
		{
			create_time_1=$("input[name='create_time_1']").val();
			var data = new Date(create_time_1);
			create_ym =(data.getFullYear() +""+ (data.getMonth()+1));
		}

		if(confirm(LANG['CONFIRM_DELETE']))
			$.ajax({
				url: ROOT+"?"+VAR_MODULE+"="+MODULE_NAME+"&"+VAR_ACTION+"=delete_prop&id="+id+"&create_ym="+create_ym,
				data: "ajax=1",
				dataType: "json",
				success: function(obj){
					$("#info").html(obj.info);
					if(obj.status==1){
						location.href=location.href;
					}
				}
			});
	}


</script>
<script type="text/javascript" src="__TMPL__Common/js/calendar/calendar.php?lang=zh-cn" ></script>
<link rel="stylesheet" type="text/css" href="__TMPL__Common/js/calendar/calendar.css" />
<script type="text/javascript" src="__TMPL__Common/js/calendar/calendar.js"></script>
<div class="main">
	<div class="main_title"><?php echo ($user_info["nick_name"]); ?> <?php echo L("USER_PROP_DETAIL");?><?php echo ($list[0]["log_admin_id"]); ?></div>
	<div class="blank5"></div>
	<div class="blank5"></div>
	<div class="search_row">
		<form name="search" action="__APP__" method="get" class="clearfix">
			<div>收取礼物用户ID：<input type="text" class="textbox" name="to_user_id" value="<?php echo trim($_REQUEST['to_user_id']);?>" style="width:100px;" /></div>
			<div>收取礼物用户昵称：<input type="text" class="textbox" name="nick_name" value="<?php echo trim($_REQUEST['nick_name']);?>" style="width:100px;" /></div>
			<div>礼物名称:<select name="prop_id">
			<option value="-1">全部</option>
			<option value="0" <?php if($_REQUEST['prop_id']!='' && $_REQUEST['prop_id'] == 0): ?>selected="selected"<?php endif; ?>>弹幕</option>
			<?php if(is_array($prop)): foreach($prop as $key=>$prop_item): ?><option value="<?php echo ($prop_item["id"]); ?>" <?php if($_REQUEST['prop_id'] == $prop_item['id']): ?>selected="selected"<?php endif; ?>><?php echo ($prop_item["name"]); ?></option><?php endforeach; endif; ?>
		</select></div>
			<div>赠送时间:
			<select name="years" style="margin-right:0">
				<option value="-1">默认</option>
				<?php if(is_array($years)): foreach($years as $key=>$time_years): ?><option name="years" <?php if($_REQUEST['years'] == $time_years): ?>selected="selected"<?php endif; ?>><?php echo ($time_years); ?></option><?php endforeach; endif; ?>
			</select> - <select name="month">
			<option value="-1">默认</option>
			<?php if(is_array($month)): foreach($month as $key=>$time_month): ?><option name="month" <?php if($_REQUEST['month'] == $time_month): ?>selected="selected"<?php endif; ?>><?php echo ($time_month); ?></option><?php endforeach; endif; ?>
		</select>
			<!--赠送时间：-->
			<!--<span><input type="text" class="textbox" name="create_time_1" id="create_time_1" value="<?php echo ($_REQUEST['create_time_1']); ?>" onfocus="this.blur(); return showCalendar('create_time_1', '%Y-%m-%d', false, false, 'btn_create_time_1');" /><input type="button" class="button" id="btn_create_time_1" value="<?php echo L("SELECT_TIME");?>" onclick="return showCalendar('create_time_1', '%Y-%m-%d', false, false, 'btn_create_time_1');" /></span> - <span><input type="text" class="textbox" name="create_time_2" id="create_time_2" value="<?php echo ($_REQUEST['create_time_2']); ?>" onfocus="this.blur(); return showCalendar('create_time_2', '%Y-%m-%d', false, false, 'btn_create_time_2');" /><input type="button" class="button" id="btn_create_time_2" value="<?php echo L("SELECT_TIME");?>" onclick="return showCalendar('create_time_2', '%Y-%m-%d', false, false, 'btn_create_time_2');" /></span>-->
			<input type="hidden" value="UserGeneral" name="m" /><input type="hidden" value="prop" name="a" /><input type="submit" class="button" value="<?php echo L("SEARCH");?>" />
			<input type="hidden" value="<?php echo $_REQUEST['id'] ?>" name="id"/></div>



		</form>

	</div>
	<!-- Think 系统列表组件开始 -->
<table id="dataTable" class="dataTable" cellpadding=0 cellspacing=0 ><tr><td colspan="10" class="topTd" ></td></tr><tr class="row" ><th width="8"><input type="checkbox" id="check" onclick="CheckAll('dataTable')"></th><th width="50px"><a href="javascript:sortBy('prop_id','<?php echo ($sort); ?>','UserGeneral','prop')" title="按照礼物ID<?php echo ($sortType); ?> ">礼物ID<?php if(($order)  ==  "prop_id"): ?><img src="__TMPL__Common/images/<?php echo ($sortImg); ?>.gif" width="12" height="17" border="0" align="absmiddle"><?php endif; ?></a></th><th><a href="javascript:sortBy('prop_name','<?php echo ($sort); ?>','UserGeneral','prop')" title="按照礼物名称<?php echo ($sortType); ?> ">礼物名称<?php if(($order)  ==  "prop_name"): ?><img src="__TMPL__Common/images/<?php echo ($sortImg); ?>.gif" width="12" height="17" border="0" align="absmiddle"><?php endif; ?></a></th><th><a href="javascript:sortBy('to_user_id','<?php echo ($sort); ?>','UserGeneral','prop')" title="按照用户ID<?php echo ($sortType); ?> ">用户ID<?php if(($order)  ==  "to_user_id"): ?><img src="__TMPL__Common/images/<?php echo ($sortImg); ?>.gif" width="12" height="17" border="0" align="absmiddle"><?php endif; ?></a></th><th><a href="javascript:sortBy('nick_name','<?php echo ($sort); ?>','UserGeneral','prop')" title="按照用户昵称<?php echo ($sortType); ?> ">用户昵称<?php if(($order)  ==  "nick_name"): ?><img src="__TMPL__Common/images/<?php echo ($sortImg); ?>.gif" width="12" height="17" border="0" align="absmiddle"><?php endif; ?></a></th><th><a href="javascript:sortBy('num','<?php echo ($sort); ?>','UserGeneral','prop')" title="按照数量<?php echo ($sortType); ?> ">数量<?php if(($order)  ==  "num"): ?><img src="__TMPL__Common/images/<?php echo ($sortImg); ?>.gif" width="12" height="17" border="0" align="absmiddle"><?php endif; ?></a></th><th><a href="javascript:sortBy('total_ticket','<?php echo ($sort); ?>','UserGeneral','prop')" title="按照获得<?php echo L("TICKET");?><?php echo ($sortType); ?> ">获得<?php echo L("TICKET");?><?php if(($order)  ==  "total_ticket"): ?><img src="__TMPL__Common/images/<?php echo ($sortImg); ?>.gif" width="12" height="17" border="0" align="absmiddle"><?php endif; ?></a></th><th><a href="javascript:sortBy('create_time','<?php echo ($sort); ?>','UserGeneral','prop')" title="按照赠送时间<?php echo ($sortType); ?> ">赠送时间<?php if(($order)  ==  "create_time"): ?><img src="__TMPL__Common/images/<?php echo ($sortImg); ?>.gif" width="12" height="17" border="0" align="absmiddle"><?php endif; ?></a></th><th><a href="javascript:sortBy('from_ip','<?php echo ($sort); ?>','UserGeneral','prop')" title="按照赠送IP<?php echo ($sortType); ?> ">赠送IP<?php if(($order)  ==  "from_ip"): ?><img src="__TMPL__Common/images/<?php echo ($sortImg); ?>.gif" width="12" height="17" border="0" align="absmiddle"><?php endif; ?></a></th><th><a href="javascript:sortBy('is_coin','<?php echo ($sort); ?>','UserGeneral','prop')" title="按照赠送类型<?php echo ($sortType); ?> ">赠送类型<?php if(($order)  ==  "is_coin"): ?><img src="__TMPL__Common/images/<?php echo ($sortImg); ?>.gif" width="12" height="17" border="0" align="absmiddle"><?php endif; ?></a></th></tr><?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$prop): ++$i;$mod = ($i % 2 )?><tr class="row" ><td><input type="checkbox" name="key" class="key" value="<?php echo ($prop["id"]); ?>"></td><td><?php echo ($prop["prop_id"]); ?></td><td><?php echo ($prop["prop_name"]); ?></td><td><?php echo ($prop["to_user_id"]); ?></td><td><?php echo ($prop["nick_name"]); ?></td><td><?php echo ($prop["num"]); ?></td><td><?php echo ($prop["total_ticket"]); ?></td><td><?php echo ($prop["create_time"]); ?></td><td><?php echo ($prop["from_ip"]); ?></td><td><?php echo (is_coin($prop["is_coin"])); ?></td></tr><?php endforeach; endif; else: echo "" ;endif; ?><tr><td colspan="10" class="bottomTd"> &nbsp;</td></tr></table>
<!-- Think 系统列表组件结束 -->


	<div class="blank5"></div>
	<div class="button_row">
		<!--<input type="button" class="button" value="<?php echo L("FOREVERDEL");?>" onclick="prop_detail();" />-->
	</div>
	<div class="page"><?php echo ($page); ?></div>
</div>
</body>
</html>